package light.head.controller.sys;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import light.head.constant.Msg;
import light.head.constant.Sys;
import light.head.constant.Url;
import light.head.framework.base.BaseController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = Url.C_SESSION)
public class SessionController extends BaseController {

	@RequestMapping(value = Sys.NONE)
	public void init(HttpServletRequest request, HttpServletResponse response) throws Exception {
		if (null == cu_code(request)) {
			print(response, Msg.ERROR);
		} else {
			print(response, Msg.SUCCESS);
		}
	}
}
